<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  <meta name="description" content="Start your development with a Dashboard for Bootstrap 4.">
  <meta name="author" content="bootstrapmb">
  <title>用户中心 - {{.setting.title}}</title>
  <!-- Favicon -->
  <link rel="icon" href="/resource/image/brand/favicon.png" type="image/png">
  <!-- Fonts -->
  <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700">
  <!-- Icons -->
  <link rel="stylesheet" href="/resource/nucleo/css/nucleo.css" type="text/css">
  <!-- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.9.0/css/all.min.css" type="text/css"> -->
  
  <!-- Page plugins -->
  <!-- Argon CSS -->
  <link rel="stylesheet" href="/resource/css/argon.css?v=1.1.0" type="text/css">
  {{include .headTpl .}}


  <script>

    function notify(type,message){
      $.notify({
        icon: 'ni ni-bell-55',
        title: '信息',
        message: message,
        url: ''
      }, {
        element: 'body',
        type: type,
        allow_dismiss: true,
        placement: {
          from: 'top',
          align: 'center'
        },
        offset: {
          x: 15, // Keep this as default
          y: 15 // Unless there'll be alignment issues as this value is targeted in CSS
        },
        spacing: 10,
        z_index: 1080,
        delay: 3000,
        timer: 1000,
        url_target: '_blank',
        mouse_over: false,
        animate: {
          // enter: animIn,
          // exit: animOut
          enter: true,
          exit: true
        },
        template: '<div data-notify="container" class="alert alert-dismissible alert-{0} alert-notify" role="alert">' +
          '<span class="alert-icon" data-notify="icon"></span> ' +
          '<div class="alert-text"</div> ' +
          '<span class="alert-title" data-notify="title">{1}</span> ' +
          '<span data-notify="message">{2}</span>' +
          '</div>' +
          // '<div class="progress" data-notify="progressbar">' +
          // '<div class="progress-bar progress-bar-{0}" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" style="width: 0%;"></div>' +
          // '</div>' +
          // '<a href="{3}" target="{4}" data-notify="url"></a>' +
          '<button type="button" class="close" data-notify="dismiss" aria-label="Close"><span aria-hidden="true">&times;</span></button>' +
          '</div>'
      });
    }

    
  </script>

</head>

<body>
  <!-- Sidenav -->
  <nav class="sidenav navbar navbar-vertical fixed-left navbar-expand-xs navbar-light bg-white" id="sidenav-main">
    <div class="scrollbar-inner">
      <!-- Brand -->
      <div class="sidenav-header d-flex align-items-center">
        <a class="navbar-brand" href="/user"  style="height: 75px;">
          <p>用户中心</p>
        </a>
        <div class="ml-auto">
          <!-- Sidenav toggler -->
          <div class="sidenav-toggler d-none d-xl-block" data-action="sidenav-unpin" data-target="#sidenav-main">
            <div class="sidenav-toggler-inner">
              <i class="sidenav-toggler-line"></i>
              <i class="sidenav-toggler-line"></i>
              <i class="sidenav-toggler-line"></i>
            </div>
          </div>
        </div>
      </div>
      <div class="navbar-inner">
        <!-- Collapse -->
        <div class="collapse navbar-collapse" id="sidenav-collapse-main">
          <!-- Nav items -->
          <ul class="navbar-nav">
            <li class="nav-item">
              <a class="nav-link {{if eq .path (concat "/user" "")}}active{{end}}" href="/user" role="button" aria-controls="navbar-dashboards">
                <i class="ni ni-chart-bar-32 text-primary"></i>
                <span class="nav-link-text">仪表盘</span>
              </a>
            </li>
            <li class="nav-item">
              <a class="nav-link {{if eq .path (concat "/user/knowledge" "")}}active{{end}}" href="/user/knowledge" role="button" aria-controls="navbar-dashboards">
                <i class="ni ni-book-bookmark text-primary"></i>
                <span class="nav-link-text">使用文档</span>
              </a>
            </li>
          </ul>

          <!-- Divider -->
          <hr class="my-3">
          <!-- Heading -->
          <h6 class="navbar-heading p-0 text-muted">订阅</h6>
          <!-- Nav items -->
          <ul class="navbar-nav">
            <li class="nav-item">
              <a class="nav-link {{if eq .path (concat "/user/plan" "")}}active{{end}}" href="/user/plan" role="button" aria-controls="navbar-dashboards">
                <i class="ni ni-bag-17 text-primary"></i>
                <span class="nav-link-text">购买订阅</span>
              </a>
            </li>
            
            <li class="nav-item">
              <a class="nav-link {{if eq .path (concat "/user/node" "")}}active{{end}}" href="/user/node" role="button" aria-controls="navbar-dashboards">
                <i class="ni ni-world text-primary"></i>
                <span class="nav-link-text">节点列表</span>
              </a>
            </li>
          </ul>

          <!-- Divider -->
          <hr class="my-3">
          <!-- Heading -->
          <h6 class="navbar-heading p-0 text-muted">财务</h6>
          <!-- Nav items -->
          <ul class="navbar-nav">
            <li class="nav-item">
              <a class="nav-link {{if eq .path (concat "/user/wallet" "")}}active{{end}}" href="/user/wallet" role="button" aria-controls="navbar-dashboards">
                <i class="ni ni-credit-card text-primary"></i>
                <span class="nav-link-text">钱包</span>
              </a>
            </li>
          </ul>


          <!-- Divider -->
          <hr class="my-3">
          <!-- Heading -->
          <h6 class="navbar-heading p-0 text-muted">用户</h6>
          <!-- Nav items -->
          <ul class="navbar-nav">
            <li class="nav-item">
              <a class="nav-link {{if eq .path (concat "/user/user" "")}}active{{end}}" href="/user/user" role="button" aria-controls="navbar-dashboards">
                <i class="ni ni-circle-08 text-primary"></i>
                <span class="nav-link-text">个人中心</span>
              </a>
            </li>
            <li class="nav-item">
              <a class="nav-link  {{if eq .path (concat "/user/ticket" "")}}active{{end}}" href="/user/ticket" role="button" aria-controls="navbar-dashboards">
                <i class="ni ni-chat-round text-primary"></i>
                <span class="nav-link-text">工单</span>
              </a>
            </li>
            <li class="nav-item">
              <a class="nav-link {{if eq .path (concat "/user/flow" "")}}active{{end}}" href="/user/flow" role="button" aria-controls="navbar-dashboards">
                <i class="ni ni-ruler-pencil text-primary"></i>
                <span class="nav-link-text">流量明细</span>
              </a>
            </li>
          </ul>

          <!-- Divider -->
          <hr class="my-3">
          <!-- Heading -->
          <h6 class="navbar-heading p-0 text-muted">退出</h6>
          <!-- Navigation -->
          <ul class="navbar-nav mb-md-3">
            <li class="nav-item">
              <a class="nav-link" href="/user/logout" >
                <i class="ni ni-button-power"></i>
                <span class="nav-link-text">注销登录</span>
              </a>
            </li>

          </ul>
        </div>
      </div>
    </div>
  </nav>
  <!-- Main content -->
  <div class="main-content" id="panel">
    <!-- Topnav -->
    <nav class="navbar navbar-top navbar-expand navbar-dark bg-primary border-bottom pb-3">
      <div class="container-fluid">
        <div class="collapse navbar-collapse" id="navbarSupportedContent" data-action="sidenav-pin" data-target="#sidenav-main">

          <!-- Navbar links -->
          <ul class="navbar-nav align-items-center ml-md-auto">
            <li class="nav-item d-xl-none">
              <!-- Sidenav toggler -->
              <div class="pr-3 sidenav-toggler sidenav-toggler-dark">
                <div class="sidenav-toggler-inner">
                  <i class="sidenav-toggler-line"></i>
                  <i class="sidenav-toggler-line"></i>
                  <i class="sidenav-toggler-line"></i>
                </div>
              </div>
            </li>

          </ul>
          <ul class="navbar-nav align-items-center ml-auto ml-md-0">
            <li class="nav-item dropdown">
              <a class="nav-link pr-0" href="#" role="button" data-toggle="dropdown" aria-haspopup="true"
                aria-expanded="false">
                <div class="media align-items-center">
                  <span class="avatar avatar-sm rounded-circle">
                    <img alt="Image placeholder" src="/resource/image/theme/team-4.jpg">
                  </span>
                  <div class="media-body ml-2 d-none d-lg-block">
                    <span class="mb-0 text-sm  font-weight-bold">{{.user.UserName}}</span>
                  </div>
                </div>
              </a>
              <div class="dropdown-menu dropdown-menu-right">
                <a href="/user/logout" class="dropdown-item">
                  <i class="ni ni-user-run"></i>
                  <span>注销</span>
                </a>
              </div>
            </li>
          </ul>
        </div>
      </div>
    </nav>
    <!-- Header -->

    <!-- Page content -->
    {{include .mainTpl .}}
  </div>
  <!-- Argon Scripts -->
  <!-- Core -->
  
  <script src="/resource/js/jquery-3.7.1.min.js"></script>
  <script src="/resource/bootstrap-4.6.2-dist/js/bootstrap.bundle.min.js"></script>
  <script src="/resource/js/js.cookie.min.js"></script>
  <script src="/resource/js/jquery.scrollbar.min.js"></script>
  <script src="/resource/js/jquery-scrollLock.min.js"></script>

  <script src="/resource/js/bootstrap-notify.min.js"></script>
  
  <!-- <script src="https://use.fontawesome.com/releases/v5.11.2/js/all.js"></script> -->
 
  <script src="/resource/js/sweetalert2.min.js"></script>
  {{include .scriptTpl .}}


  <!-- Argon JS -->
  <script src="/resource/js/argon.js?v=1.1.0"></script>
  
</body>

</html>